package drugs

import (
	"Project/global"
)

type DrugsMiddle struct {
	global.GVA_MODEL
	RecordID int64  `json:"record_id" gorm:"index;NOT NULL;comment:登记记录唯一标识"`
	DrugID   int64  `json:"drug_id"   gorm:"NOT NULL;comment:药品唯一标识"`
	DrugName string `json:"drug_name" gorm:"VARCHAR(30);NOT NULL;comment:药品名"`
	DrugNum  int    `json:"drug_num"  gorm:"default:1;NOT NULL;comment:购买数量"`
}

func (DrugsMiddle) TableName() string {
	return "drugs_middle"
}
